/* Copyright (c) 2004-2024 peigen.info. All rights reserved. */

package info.peigen.hotpot.component.open.sdk.order;

import com.google.common.collect.Maps;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;

import java.util.Map;

/**
 * <b>(UserCreateOrder)</b>
 * "用户" 创建服务请求
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2024-09-11
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
public class UserCreateOrder {
    @Size(max = 100, message = "[用户昵称]超长")
    String nickName;
    @NotEmpty(message = "[电话]不得为空")
    @Size(max = 30, message = "[电话]超长")
    String mobile;
    @Size(max = 2000, message = "[头像,JSON]超长")
    String avatar;

    @Size(max = 64)
    String bizOrderNo;

    @Size(max = 30)
    String productCode;

    @Size(max = 30)
    String partnerId;

    @Size(max = 10)
    String token;

    /** 作为系统考虑不周全的时候放入临时用到的东西 */
    @Builder.Default
    Map<String, Object> extend = Maps.newHashMap();

}